<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Title</title>
	<script src="../node_modules/axios/dist/axios.js"></script>
</head>
<body>

</body>
<script type="module">
	// axios返回的是一个Promise实例
	import axios from "./index.js";
	try{
		const result = await axios({
			url:"http://zhangpeiyue.com/scoreList1212",
			params:{
				age:12,
				sex:"男"
			}
		}).then(value=>{
			console.log(value);
		})
	}catch (err){
		console.log(err);
	}
	
</script>
</html>